package com.betting.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Getter
@Setter
@TableName("bet_record")
public class BetRecord {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("bet_time")
    private LocalDateTime betTime;
    
    @TableField(exist = false)
    private String betTimeStr;
    
    @TableField("home_team")
    private String homeTeam;  // 主队
    
    @TableField("away_team")
    private String awayTeam;  // 客队
    
    @TableField("handicap_team")
    private String handicapTeam;  // 让球方
    
    @TableField("league_name")
    private String leagueName;  // 联赛名称
    
    @TableField("bet_type")
    private String betType;  // 让球/大小分
    
    @TableField("handicap_value")
    private String handicapValue;  // 盘口数值
    
    @TableField("odds")
    private BigDecimal odds;  // 水位
    
    @TableField("bet_amount")
    private BigDecimal betAmount;  // 投注金额
    
    @TableField("result_amount")
    private BigDecimal resultAmount;  // 结果金额
    
    @TableField("home_score")
    private Integer homeScore;  // 主队得分
    
    @TableField("away_score")
    private Integer awayScore;  // 客队得分
    
    @TableField("bet_result")
    private String betResult;  // 比赛结果
    
    @TableField("note")
    private String note;  // 备注
    
    @TableField("create_time")
    private LocalDateTime createTime;
    
    @TableField("update_time")
    private LocalDateTime updateTime;
    
    @TableField("settle_time")
    private LocalDateTime settleTime;  // 结算时间
} 